www.mxdraw.com
|
返回光栅图形的位置参数
[helpstring("method GetOrientation")] HRESULT GetOrientation([out] IMxDrawPoint** origin, [out] IMxDrawVector3d** uCorner, [out] IMxDrawVector3d** vOnPlane);
参数 |
说明 |
[out] IMxDrawPoint** origin |
光栅图形的插入点 |
[out] IMxDrawVector3d** uCorner |
光栅图的宽度方向显示向量,用于确定光栅图的宽度,和旋转角度 |
[out] IMxDrawVector3d** vOnPlane |
光栅图的高度方向显示向量,该向量必须垂直vConer,确定光栅图的高度 |
例如: C#
MxDrawEntity ent = (MxDrawEntity)axMxDrawX1.GetEntity("image"); if (ent == null) return; if (!(ent is MxDrawRasterImage) ) { return; } MxDrawRasterImage image = (MxDrawRasterImage)ent; MxDrawPoint Origin; MxDrawVector3d uCorner; MxDrawVector3d vOnPlane; image.GetOrientation(out Origin, out uCorner, out vOnPlane); Double dW = uCorner.Length(); Double dH = vOnPlane.Length();